package com.example.automanagement.service.serviceImpl;

import com.example.automanagement.entity.DriverArchives;
import com.example.automanagement.mapper.DriverArchMapper;
import com.example.automanagement.service.DriverArchService;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DriverArchServiceImpl implements DriverArchService {
    @Resource
    private DriverArchMapper driverArchMapper;
    @Override
    public List<DriverArchives> pageList() {
        return driverArchMapper.pageList();
    }

    @Override
    public DriverArchives getDriverArchiveById(String userId) {
        return driverArchMapper.getDriverArchiveById(userId);
    }

    @Override
    public void deleteDriverArchiveById(DriverArchives archive) {
        driverArchMapper.deleteDriverArchiveById(archive);
    }

    @Override
    public void insertDriverArchive(DriverArchives archive) {
        driverArchMapper.insertDriverArchive(archive);
    }

    @Override
    public void updateDriverArchive(DriverArchives archive) {
        driverArchMapper.updateDriverArchive(archive);
    }

    @Override
    public List<DriverArchives> getAllDrivers() {
        return driverArchMapper.getAllDrivers();
    }



}
